﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Sahit.iSoilHotel.DistributedServices.MainBoundedContext.Interfaces;
using Sahit.iSoilHotel.Application.MainBoundedContext.DTO.RoomAgg;
using Sahit.iSoilHotel.Application.MainBoundedContext.Tavern.Interfaces;
using Sahit.iSoilHotel.DistributedServices.MainBoundedContext.InstanceProviders;
using Sahit.iSoilHotel.Application.MainBoundedContext.DTO.FilterAgg;

namespace Sahit.iSoilHotel.DistributedServices.MainBoundedContext
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "TavernRoomService" in code, svc and config file together.
     [UnityInstanceProviderServiceBehavior()]
    public class TavernRoomService : ITavernRoomService
    {
        private readonly IRoomService roomService;

        public TavernRoomService(IRoomService roomService)
        {
            this.roomService = roomService;
        }

        public List<RoomTypeDTO> GetRoomType()
        {
            return roomService.GetRoomType();
        }

        public List<RoomDTO> GetRoom(RoomFilterDTO filter)
        {
            return roomService.GetRoom(filter);
        }

        public List<BuildingDTO> GetAllBuildings()
        {
            return roomService.GetAllBuildings();
        }
    }
}
